package com.appcenter.application.mapper;

import com.appcenter.application.dto.permissionrelations.PermissionRelationDto;
import com.appcenter.application.input.permissionrelation.GetPermissionRelationsInput;
import com.appcenter.application.model.PermissionRelations;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
@Repository
public interface PermissionRelationsMapper extends Mapper<PermissionRelations> {

    @Select("select * from permissionrelations where DataId=#{dataId} and AppCode=#{appCode}")
    public List<PermissionRelationDto> getPermissionRelationByDataId(GetPermissionRelationsInput input);

}
